1.获取请求的url信息
需要申明一个Request对象
    public function reqtest(Request $request){
    	$uri = $request->path();
    	echo "uri=>",$uri;
    	echo "<br/>";

    	$pattern = $request->is('foo/*');
    	echo 'is Method=>',$pattern;
    	echo "<br/>";

    	$url = $request->url();
    	echo "url=>",$url;
    	echo "<br/>";
    }

2.获取输入input
路由设置
/*使用any可以匹配全部的http方法*/
Route::any('/input','UriController@inputtest');
/*使用match可以指定方法*/
Route::match(['get', 'post'], '/inputest', 'UriController@inputtest');

laravel使用了csrf保护，存放在cookie中，测试不了post请求
XSRF-TOKEN=eyJpdiI6Imo5SUFucytrUDdFS3dJeE81anhtdHc9PSIsInZhbHVlIjoiTDdxNmpaRDFpMk9UUnJlK25Ha0JXeHpMQm5xbnpFdHZHb2Z1WDBoSzZrcUdrSE9BZWU4TTNlU1crQ01ab0kyNzhVXC9BS0tEYjNmSjBYaFREeFpVMlBnPT0iLCJtYWMiOiIzYzk4NDg1NGYxMDZhOGE4NTMyYjgzNWIwNjExOTM5ZmJkNzE3MmRiOTZlYzcwMGIyMzI3YmU5YjA5ZWM1ZGE3In0%3D; laravel_session=eyJpdiI6Ik9GcGE1bnVDWGZCVkd5Y09JWENMcmc9PSIsInZhbHVlIjoiRzhwaWJYcVRFMFdkZmxPZ1hKVGpFUGJzcTMwcU0xeHRNMmdMUWtlR2Vud0Z2eHdmWWFYNUsxOVZ6em93Wnptc2g1bktLWXlqOTBudVNNcmdUT3F3MlE9PSIsIm1hYyI6IjIzZTkxZDg2MDVjNjU5NTA0YmYzMDllMzg5YTRjYmQxOTU4ZTFmMjYyNzRiYmI5NjdjYmExZjcwMGQxNThiNWUifQ%3D%3D

使用$request的方法input($varName),或者使用属性$request->varName